<?php
	$css_list[0]['url'] = './tpl/css/loginreg.css';
	$js_list[0] = './tpl/js/loginreg.js';
        $js_list[1] = './public/js/city.js';
?>
<!--{template inc/header}-->
<div id="body" class="fm960">
	<div class="piece1">
		<div class="piece1_hd"></div>
		<div class="piece1_bd clearfix">
			<div id="content" style="width:960px;">
				<div id="register_box">
					<div id="register_left">
						<h1>{lang reg_tip_1}</h1>
						<span>发现适合自己的妆品，你会喜欢上这里</span>
						<div id="register_center">
							<div id="register_form">
								<form action="{u user/ajax_register}" method="post" id="registerForm">
									<div class="ipt_mail">
										<span>{lang email}：</span>
										<input type="text" maxlength="36" name="email" id="reg_email" class="text" value="" istip="0" rel=".err_email" check="0"/>
									</div>
									<div class="ipt_ulike">
										<span>{lang nickname}：</span>
										<input style="*margin-left:-1px;" maxlength="36" type="text" name="user_name" id="reg_user_name" class="text" value="" istip="0" rel=".err_ulike" check="0"/>
									</div>
									<div class="ipt_sex">
										<span>{lang gender}：</span>
										<div class="rdo">
											<label><input type="radio" name="gender" value="0" checked="checked" class="ck"> {lang user/gender_0}</label>
											<label><input style="margin-left:10px" type="radio" name="gender" value="1" class="ck"> {lang user/gender_1}</label>
										</div>                                                                             
                                                                                
									</div>
                                                                        <div class="ipt_fuzhi">
										<span>{lang fuzhi}：</span>										
                                                                                    <select name="fuzhi" class="fl" id="fuzhi" rel=".err_fuzhi" check="0">
                                                                                        <option value="0"> 请选择 </option>
                                                                                        <option value="干性"> 干性 </option>
                                                                                        <option value="油性"> 油性 </option>
                                                                                        <option value="混合性"> 混合性 </option>
                                                                                        <option value="中性"> 中性 </option>
                                                                                    </select>                                                                                        
                                                                                    <label><input style="margin-left:10px;" type="checkbox" name="mg_status" value="1" class="cc"> 敏感性</label>
<!--                                                                                    <a href="{u fuzhitest}" style="margin-left:15px;color:#669966;">优颜帮忙测试</a>     -->
										                                                                      
                                                                                
									</div>
                                                                   
									<div class="ipt_password">
										<span>{lang password}：</span>
										<input style="*margin-left:-1px;" maxlength="36" type="password" name="password" id="reg_password" class="text" istip="0" rel=".err_password" check="0"/>
									</div>
									<div class="ipt_respassword">
										<span>{lang cpassword}：</span>
										<input type="password" maxlength="36" name="confirm_password" id="reg_cpassword" class="text" istip="0" rel=".err_rstpassword" check="0"/>
									</div>
                                                                    <div class="ipt_introduce">
                                                                        <span>{lang introduce}：<br/>自己</span>
									<textarea id="introduce" name="introduce" value="" cols="46" rows="2" rel=".err_introduce" check="0">比如爱好，职业，个性特点等等</textarea>
                                                                    </div>
                                                                        <div class="ipt_birth">
                                                                            <span>{lang birth}：</span>
                                                                                    <div id="birth">
                                                                                        <select name="birthYear" id="birthYear"  rel=".err_birth" check="0">
                                                                                        <option value="0">---年---</option>
                                                                                        <script language="javascript" type="text/javascript">
                                                                                            var birthYear = 0;
                                                                                            for(var i=2000;i>1930;i--){
                                                                                                if(birthYear==i){
                                                                                                    document.write('<option value='+i+' selected>'+i+'</option>');
                                                                                                }else{
                                                                                                    document.write('<option value='+i+'>'+i+'</option>');
                                                                                                }
                                                                                            }
                                                                                        </script>
                                                                                        </select> 

                                                                                        <select name="birthMonth" id="birthMonth"  rel=".err_birth" check="0">
                                                                                                    <option value="0">---月---</option>
                                                                                            <script language="javascript" type="text/javascript">
                                                                                                var birthMonth = 0;
                                                                                                for(var i=1;i<=12;i++){
                                                                                                    if(birthMonth==i){
                                                                                                        document.write('<option value='+i+' selected>'+i+'</option>');
                                                                                                    }else{
                                                                                                        document.write('<option value='+i+'>'+i+'</option>');
                                                                                                    }
                                                                                                }
                                                                                            </script>
                                                                                        </select> 
                                                                                        <select name="birthDay" id="birthDay"   rel=".err_birth" check="0">
                                                                                                    <option value="0">---日---</option>
                                                                                            <script language="javascript" type="text/javascript">
                                                                                                var birthDay = 0;
                                                                                                for(var i=1;i<=31;i++){
                                                                                                    if(birthDay==i){
                                                                                                        document.write('<option value='+i+' selected>'+i+'</option>');
                                                                                                    }else{
                                                                                                        document.write('<option value='+i+'>'+i+'</option>');
                                                                                                    }
                                                                                                }
                                                                                            </script>
                                                                                        </select> 
                                                                                <input type="hidden" id="_hide_birth" name="_hide_birth" value="">
                                                                            </div>

                                                                        </div>
                                                                    <div class="ipt_area">
                                                                        <span>{lang area}：</span>                                                                       
                                                                        <div class="location">
                                                                                <select id="province" name="province">
                                                                                    
                                                                                </select>

                                                                                <select id="city" name="city">
                                                                              
                                                                                </select>
                                                                        </div>

                                                                    </div>
									<div class="ipt_check">
                                                                            <span>{lang checkcode}：</span>
                                                                            <input class="check" type="text" maxlength="10" name="checkcode">
                                                                            <img id="img_checkcode" alt="验证码" src="{$_FANWE['site_root']}misc.php?action=verify&rhash=<!--{dynamic getRHash}-->">
                                                                            <a id="checkcode_change" href="javascript:void(0);">换一张</a>
                                                                        </div>
									<div class="ipt_box">
										<input class="box fl" type="checkbox" name="agreement" id="reg_agreement" checked="checked" value="1" />
										<!--{eval $agreement_url = FU('user/agreement');}-->
										<span class="fl">{sprintf reg_tip_3 $agreement_url,$_FANWE['setting']['site_name']}</span>
									</div>
									<div class="ipt_sub">
										<input type="submit" class="sub" id="reg_submit" value=" "/>
										<div class="lg_reg_loading">
											<span style="font-size:13px;">{lang reg_loading}</span>
										</div>
										<div class="lg_reg_check">
											<span style="font-size:13px; color:#f00;">{lang reg_check}</span>
										</div>
									</div>
									<input name="rhash" id="regRHash" value="<!--{dynamic getRHash}-->" type="hidden"/>
									<input name="refer" value="{u u/index}" type="hidden"/>
									<input name="action" value="ajax_register" type="hidden"/>
								</form>
                                                                <script type="text/javascript">
                                                                    jQuery(function($){
                                                                    $("#introduce").one('focus',function(){
                                                                    this.value = '';
                                                                    });
                                                                    $.Bind_City("#province","#city","0","0");
                                                                    });
                                                                </script>
							</div>
							<div id="register_error">
								<div class="err_email">{lang reg_tip_5}</div>
								<div class="err_ulike">{lang reg_tip_6}</div>
                                                                <div class="err_fuzhi"></div>
								<div class="err_password">{lang reg_tip_7}</div>
								<div class="err_rstpassword">{lang reg_tip_8}</div>
                                                                <div class="err_introduce"></div>   
                                                                <div class="clear"></div>
                                                                <div class="err_birth"></div>   
                                                                
							</div>
						</div>
					</div>
					<div id="register_right">
						<div class="rst_login">
							<span>{sprintf reg_tip_4 $_FANWE['setting']['site_name']}</span>
							<a href="{u user/login}"></a>
						</div>
						<div class="other_login">
							<span>{lang other_login}：</span>
							<!--{loop $login_modules $login_module}-->
							<a class="o_icon" href="{$login_module['login_url']}" style="background:url({$login_module['icon_img']}) no-repeat left center;">{$login_module['name']}</a>
							<!--{/loop}-->
						</div>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<div class="piece1_ft"></div>
	</div>
</div>
<!--{template inc/footer}-->
